<template>
<!--  住宿 交通 美食 天气模块的header部分-->
  <div class="headerIcon">
    <div class="iconLeft" @click="toHome">
      <span class="iconfont">{{iconLeft}}</span>
    </div>
    <div class="iconRight">
      <span class="iconfont">&#xe637;</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "HomeTypeHeader",
  props: {
    iconLeft: String,
    active: ''
  },
  methods: {
    toHome(){
      this.$router.push("/")
    }
  }
}
</script>

<style scoped>
.headerIcon{
  position: absolute;
  display: flex;
  justify-content: space-between;
  width: 92%;
  left: 4%;
  top: 1%;
  z-index: 100;
}
.iconfont{
  font-size: 30px;
  line-height: .8rem;
  color: white;
}
.iconLeft, .iconRight{
  background-color: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: .8rem;
  height: .8rem;
  text-align: center;
}
</style>